package com.qf.joint.service.impl;

import com.qf.joint.dao.TradepostDao;
import com.qf.joint.pojo.Tradepost;
import com.qf.joint.service.TradepostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TradepostServiceImpl implements TradepostService {
    @Autowired
    private TradepostDao tradepostDao;
    @Override
    public int delete(List<String> list) {
        return tradepostDao.delete(list);
    }

    @Override
    public int insert(Tradepost tradepost) {
        return tradepostDao.insert(tradepost);
    }

    @Override
    public int update(Tradepost tradepost) {
        return tradepostDao.update(tradepost);
    }

    @Override
    public List<Tradepost> selectAll() {
        return tradepostDao.selectAll();
    }

    @Override
    public List<Tradepost> select(Tradepost tradepost) {
        List<Tradepost> list=tradepostDao.select(tradepost);
        return list;
    }
}
